<%if get_user_type == '0'%><%= link_to "收藏书签 hg3000.cn",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num %><%="<br/>"%><%end%>
<% if @img_style.to_i == 1 %>
  <%= "文字预览"%><%= "|"%><%= link_to "图文并茂",:controller => 'col', :action => 'hot',:sid=>my_sid,:page_for => @page_for,:img_style => 2,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type => 1,:cn=>my_cn %>
  <%=  "<br/>" %>
  <% ad = get_col_ads %>
  <% unless ad.nil? %>
    <%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/>
  <% end %>
  <% @resouces.each_with_index do |resource,res_index| %>
    <%
    if params[:page].to_i == 0
      res_index = res_index + 1
    else
      res_index = res_index + 1 + (params[:page].to_i - 1)*15
    end
  %>
    <%= link_to  res_index.to_s+"." + resource.name+"[#{get_pic_num resource}P]" ,
      :controller => 'col',
      :action => 'img_style_to',:resource => resource,:sid=>my_sid,:page_for => @page_for,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type => 1,:cn=>my_cn %>
    <%=  "<br/>" %>
  <% end %>
<% else %>
  <%= link_to "文字预览",:controller => 'col', :action => 'hot',:sid=>my_sid,:page_for => @page_for,:img_style => 1,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type => 1,:cn=>my_cn %><%= "|"%><%= "图文并茂"%>
  <%=  "<br/>" %>
  <% ad = get_col_ads %>
  <% unless ad.nil? %>
    <%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/>
  <% end %>
  <% @resouces.each_with_index do |resource,res_index| %>
    <% res_index = res_index + 1 %>
    <% get_resource_pagin_for_show(resource,$small) %>
    <% @img_arry.each_with_index  do |img_src,index|   %>
      <%= link_to image_tag(img_src,:alt => "正在打开.请稍侯") ,
        :controller => 'col',
        :action => 'img_style_to',:id => index,:resource => resource,:sid=>my_sid,:page_for => @page_for,:go_page =>@go_page,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type => 1,:cn=>my_cn %>
      <%=  "<br/>" %>
    <% end %>
    <%= link_to  resource.name+"[#{get_pic_num resource}P]" ,
      :controller => 'col',
      :action => 'img_style_to',:resource => resource,:sid=>my_sid,:page_for => @page_for,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:return_type => 1,:cn=>my_cn %><%=  "<br/>" %><%=  "<br/>" %>
  <% end %>
<% end %>
<%= will_paginate @resouces,:type => 'wml',:params => {:sid => my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn} %>
<% if @resouces.total_pages > 1 %>
  <input type='text' format='*N' size='2' name='jp' />
  <anchor>
    跳页<go method='get' href='/col/hot'>
      <postfield name='jump_page' value='$(jp)'/>
      <postfield name='sid' value='<%= my_sid %> '/>
      <postfield name='total_pages' value='<%= @resouces.total_pages %> '/>
      <postfield name='col_id' value='<%= @resouces[0].col_id %> '/>
      <postfield name='page_for' value='<%= @page_for %> '/>
      <postfield name='go_page' value='<%= @go_page %> '/>
      <postfield name='img_style' value='<%= @img_style %> '/>
      <postfield name='pp_style' value='<%= @pp_style %> '/>
      <postfield name='pp_num' value='<%= @pp_num %> '/>
      <postfield name='cn' value='<%=my_cn%>'/>
    </go>
  </anchor>
  <br/>
  <%= page_entries_info @resouces,:type => 'wml',:is_img => false %>
<% end %>

